/**
 * Package:com.goldcitynet.util;
 * $Id: Schedule.java,v 1.1.1.1 2009/03/23 09:21:18 zhangpei Exp $
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.util;

/**
 * Schedule
 * <p/>
 * <p><a href="Schedule.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author: zhangpei $</a>
 * @version $Revision: 1.1.1.1 $
 */
public class Schedule {

    public static final Integer SCHEDULE_STATUS_START = 0;
    public static final Integer SCHEDULE_STATUS_DOING = 1;
    public static final Integer SCHEDULE_STATUS_END = 2;
    /**
     * 总大小
     */
    private long totalSize;
    /**
     * 完成大小
     */
    private long doneSize;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 编号（正处理）
     */
    private int currentFileNum;
    /**
     * 成功数量
     */
    private int successFileNum;
    /**
     * 开始时间
     */
    private long startTime = System.currentTimeMillis();
    /**
     * 现在状态
     */
    private String currentStats;

    private Integer status = SCHEDULE_STATUS_START;

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public long getDoneSize() {
        return doneSize;
    }

    public void setDoneSize(long doneSize) {
        this.doneSize = doneSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public String getCurrentStats() {
        return currentStats;
    }

    public void setCurrentStats(String currentStats) {
        this.currentStats = currentStats;
    }

    public int getCurrentFileNum() {
        return currentFileNum;
    }

    public void setCurrentFileNum(int currentFileNum) {
        this.currentFileNum = currentFileNum;
    }

    public int getSuccessFileNum() {
        return successFileNum;
    }

    public void setSuccessFileNum(int successFileNum) {
        this.successFileNum = successFileNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String toString() {
        return "Schedule{" +
                "totalSize=" + totalSize +
                ", doneSize=" + doneSize +
                ", fileName='" + fileName + '\'' +
                ", currentFileNum=" + currentFileNum +
                ", successFileNum=" + successFileNum +
                ", startTime=" + startTime +
                ", currentStats='" + currentStats + '\'' +
                '}';
    }
}
